function getName(){
    let defaultName = "";
    if(localStorage.getItem("name")){
      defaultName = localStorage.getItem("name");
    }
    return defaultName;
  }
const musicHook = {
    state: {
        name:getName()
    },
    mutations: {
        changeName(state,name){
            state.name = name
            localStorage.setItem("name",name)
        }
    },
    actions: {
    },
} 
export default musicHook